import java.util.Random;


public class Aleatorios {
	private static Random r;
	public static void setSemilla(long semilla){
		r=new Random(semilla);
	}
	public static void setRandom(){
		r=new Random();
	}
	public static double doble(){
		return r.nextDouble();
	}
	public static int entero(int n){
		return r.nextInt(n);
	}
	public static boolean booleano(){
		return r.nextBoolean();
	}
}
